import request from "@/utils/request";

//  05、电网运行动态-读取列表
export function listEnergyState(data) {
  return request({
    url: "/customize/energyState/list",
    method: "POST",
    headers: { "content-type": "application/x-www-form-urlencoded" },
    params: data,
  });
}

// 03、电网运行动态-删除
export function delEnergyState(data) {
  return request({
    url: "/customize/energyState/delete",
    method: "POST",
    headers: { "content-type": "application/x-www-form-urlencoded" },
    params: data,
  });
}

// 04、电网运行动态-读取填写信息
export function getEnergyState(data) {
  return request({
    url: "/customize/energyState/get",
    method: "POST",
    headers: { "content-type": "application/x-www-form-urlencoded" },
    params: data,
  });
}

// 02、电网运行动态-新增或更新
export function addEnergyState(data) {
  return request({
    url: "/customize/energyState/save",
    method: "POST",
    // headers: { 'content-type': 'application/x-www-form-urlencoded' },
    data: data,
  });
}

// 01、电网运行动态-首页信息
export function firstEnergyState(data) {
  return request({
    url: "/customize/energyState/index",
    method: "POST",
    headers: { "content-type": "application/x-www-form-urlencoded" },
    params: data,
  });
}
